<!DOCTYPE html>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions'%>
<%@ taglib uri="http://www.springframework.org/security/tags"
	prefix="sec"%>
<%@ page isELIgnored="false"%><html>
<head>
<style>
.error {
	color: #ff0000;
}

.errorblock {
	color: #000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>
</head>

<body>
	<h2>Spring MVC file upload example</h2>

	<sf:form method="POST" commandName="mobileFileUpload"
		enctype="multipart/form-data" action="../mobile/uploadImage">
		
		Please select a file to upload : <sf:input path="file" type="file"
			name="file" required="true" /> <br>
		Image order: <sf:input type="number" id="imageOrder" path="imageOrder"
			required="true" maxlength="2" /><br>
		End of image: <sf:input id="endOfFile" path="endOfFile" required="true" value="Y" /><br>
		User id: <sf:input path="userid" required="true" value="4fa9399da6169fef3eff3e67" /><br>
		<input type="submit" value="Upload Image" />
	</sf:form>

</body>
</html>